package com.monitor.util;

public class Result<T> {
	private Integer code=0;
	private String msg;
	private T data;
	private int count;
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public Result(Integer code, String msg, T data, int count) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
		this.count = count;
	}
	public Result(T data, int count) {
		super();
		this.code=0;
		this.msg = "操作成功！";
		this.data = data;
		this.count = count;
	}
	public Result(T data ) {
		super();
		this.msg = "操作成功！";
		this.data = data;

	}
	public Result(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = null;
		this.count = 0;
	}

	public Result() {
		super();
		this.code = 0;
		this.msg = msg;
		this.data = null;
		this.count = 0;
	}

	
	
}
